package com.wish.service.impl;

import com.wish.entity.SysMenu;
import com.wish.mapper.SysMenuMapper;
import com.wish.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单管理 服务实现类
 * </p>
 *
 * @author 五组
 * @since 2021-03-22
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {
    @Resource
    private SysMenuMapper sysMenuMapper;


    @Override
    public List<SysMenu> selects() {
        return sysMenuMapper.selects();
    }

    @Override
    public List<SysMenu> getList(Long id) {
        return sysMenuMapper.getList(id);
    }

    @Override
    public List<SysMenu> getOne(Long id) {
        return sysMenuMapper.getOne(id);
    }

    @Override
    public List<SysMenu> getMenus(String username) {
        return baseMapper.getMenus(username);
    }
}
